﻿namespace Dynamic.DataStructures
{
    /// <summary>
    /// Represents a Node that contains 2 elements, the data and a reference for the next element.
    /// </summary>
    /// <typeparam name="T">Specifies the type of element for data.</typeparam>
    class Node<T>
    {
        /// <summary>
        /// Gets or sets the data for the node.
        /// </summary>
        public T Information { get; set; }

        /// <summary>
        /// Gets or sets a referece for an element of the same type in the structure.
        /// </summary>
        public Node<T> Next { get; set; }
    }
}
